import { HTTP } from "./HTTP"

// 注册
export function register(data) {
  return HTTP({
    url: "/system/user/register",
    method: "POST",
    data
  });
}

// 登录
export function login(data) {
  return HTTP({
    url: "/phoneLogin?terminal_type=DECLARATION_WECHAT",
    method: "POST",
    data
  });
}

// 用户信息
export function getInfo(data) {
  return HTTP({
    url: "/getInfo",
    method: "GET",
		data
  });
}

// 发送短信验证码(lsf)
export function sendMobileMessage(data) {
  return HTTP({
    url: "/getVerificationCode",
    data,
    method: "GET"
  });
}